﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	EditRole
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

 <link href="../../Content/Admin/control.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/template.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/validationEngine.jquery.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validationEngine-vi.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validationEngine.js" type="text/javascript"></script>
    <script>
        $(document).ready(function () {
            $("formID").validationEngine();
        });
    </script>
    <form method="post" action="/Role/EditRole" id="formID">
      <%if (ViewData["listroleid"] != null)
      { %>
      <table>
   <%foreach (VgoCardChange.Models.Objects.Role role in (List<VgoCardChange.Models.Objects.Role>)ViewData["listroleid"])
     { %>
      
      <tr><td> Mã quyền</td><td><input value="<%: role.RoleID %>" name="RoleID" readonly="readonly" /></td></tr> 
         <tr> <td>Tên quyền</td><td><input value="<%: role.RoleName %>" name="RoleName" class="validate[required]" /></td> 
       </tr> 
        <tr> <td>Ghi chú</td><td><input value="<%: role.Desciption%>" name="Desciption" /></td> 
       </tr> 
       <%-- Mã Quyền: <input value="<%: tv.MaQuyen %>" name="MaQuyen" />--%>
    <%} %>
    </table>
   <%} %>
   <div class="Control">
  <input type="submit" value="Ghi lại" class="vadd" />
  <%:Html.ActionLink("Trở lại", "GetRoles", "Role", new { @class="vback"})%>
  </div>

</asp:Content>
